$OpenBSD: patch-plugins_vidinput_v4l2_vidinput_v4l2_cxx,v 1.3 2017/05/07 20:48:29 espie Exp $

Index: plugins/vidinput_v4l2/vidinput_v4l2.cxx
--- plugins/vidinput_v4l2/vidinput_v4l2.cxx.orig
+++ plugins/vidinput_v4l2/vidinput_v4l2.cxx
@@ -48,6 +48,7 @@ PCREATE_VIDINPUT_PLUGIN(V4L2);
 #ifdef HAS_LIBV4L
 #include <libv4l2.h>
 #else
+#include <unistd.h>
 #define v4l2_fd_open(fd, flags) (fd)
 #define v4l2_open open
 #define v4l2_close close
